<template>
    <view>
        <cmpt-comm-list
            type="my-fav"
            :search="search || ''"
            :_menus="sortMenus || []"
            :_items="sortItems || []"
            route="fav/my_list"
            :isTotalMenu="false"
            topBottom="120"
            placeholder="搜索标题"
            returnUrl="/pages/my/fav/my_fav"
            @list="myCommListListener"
        >
            <!-- List Begin -->
            <view class="text-pic-list-box">
                <view class="item shadow item-simple" @tap="url" :data-url="item.FAV_PATH" v-for="(item, index) in dataList.list" :key="index">
                    <view class="simple">
                        <view class="simple-right">
                            <view class="simple-title content-cut-one">{{ item.FAV_TITLE }}</view>
                            <view class="simple-desc">
                                <text class="text-grey text-bold">{{ item.FAV_TYPE }}</text>
                                <text class="margin-left-s">{{ item.FAV_ADD_TIME }}</text>
                                <button @tap.stop.prevent="bindDelTap" :data-oid="item.FAV_OID" class="margin-left btn mid bg-white text-red">
                                    <text class="icon-delete"></text>
                                    删除
                                </button>
                            </view>
                        </view>
                    </view>
                </view>

                <!-- load begin -->

                <!-- parse <template is="listLoadTpl" :data="skin:'load-project',dataList"/> -->
                <block name="listLoadTpl" v-if="false">
                    <view v-if="!dataList || (dataList && dataList.page < dataList.count)" :class="'load text-grey loading ' + 'text-grey'"></view>
                    <view v-if="dataList && dataList.page > 1 && dataList.page == dataList.count" :class="'load text-grey over ' + 'text-grey'"></view>

                    <block v-if="noHintImg">
                        <image style="height: 500rpx" mode="aspectFit" v-if="dataList && dataList.total == 0" :src="noHintImg" />
                    </block>

                    <block v-else>
                        <view v-if="dataList && dataList.total == 0" :class="'load text-grey ' + 'text-grey'">{{ '暂无记录' ? '暂无记录' : '暂无记录哦~' }}</view>
                    </block>

                    <view style="height: 200rpx"></view>
                </block>
                <!-- load end -->
            </view>
            <!-- List END -->
        </cmpt-comm-list>
    </view>
</template>

<style>
@import './my_fav_tpl.css';
@import 'undefined';
</style>
